﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DBConnection;

namespace ChatApp
{
    public partial class SendMessage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            TwitterDataContext context = new TwitterDataContext();

            string messageText = Request.Params[0];
            string senderName = Request.Params[1];
            string channelName = Request.Params[2];

            DBConnection.MessagesDAO.InsertMessageToChannel("@annonymous", "#Pesho", messageText, context);
        }
    }
}